Optimal. Leaf size=55 \[ \frac {2 a^2}{3 b^3 \left (a+\frac {b}{x}\right )^{3/2}}-\frac {4 a}{b^3 \sqrt {a+\frac {b}{x}}}-\frac {2 \sqrt {a+\frac {b}{x}}}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {272, 45}
\begin {gather*} \frac {2 a^2}{3 b^3 \left (a+\frac {b}{x}\right )^{3/2}}-\frac {4 a}{b^3 \sqrt {a+\frac {b}{x}}}-\frac {2 \sqrt {a+\frac {b}{x}}}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int \frac {1}{\left (a+\frac {b}{x}\right )^{5/2} x^4} \, dx &=-\text {Subst}\left (\int \frac {x^2}{(a+b x)^{5/2}} \, dx,x,\frac {1}{x}\right )\\ &=-\text {Subst}\left (\int \left (\frac {a^2}{b^2 (a+b x)^{5/2}}-\frac {2 a}{b^2 (a+b x)^{3/2}}+\frac {1}{b^2 \sqrt {a+b x}}\right ) \, dx,x,\frac {1}{x}\right )\\ &=\frac {2 a^2}{3 b^3 \left (a+\frac {b}{x}\right )^{3/2}}-\frac {4 a}{b^3 \sqrt {a+\frac {b}{x}}}-\frac {2 \sqrt {a+\frac {b}{x}}}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 46, normalized size = 0.84 \begin {gather*} -\frac {2 \sqrt {\frac {b+a x}{x}} \left (3 b^2+12 a b x+8 a^2 x^2\right )}{3 b^3 (b+a x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 3 vs. order
2.
time = 0.05, size = 607, normalized size = 11.04
method | result | size |
gosper | \(-\frac {2 \left (a x +b \right ) \left (8 a^{2} x^{2}+12 a b x +3 b^{2}\right )}{3 x^{3} b^{3} \left (\frac {a x +b}{x}\right )^{\frac {5}{2}}}\) | \(44\) |
trager | \(-\frac {2 \left (8 a^{2} x^{2}+12 a b x +3 b^{2}\right ) \sqrt {-\frac {-a x -b}{x}}}{3 b^{3} \left (a x +b \right )^{2}}\) | \(47\) |
risch | \(-\frac {2 \left (a x +b \right )}{b^{3} x \sqrt {\frac {a x +b}{x}}}-\frac {2 a \left (5 a x +6 b \right )}{3 \left (a x +b \right ) b^{3} \sqrt {\frac {a x +b}{x}}}\) | \(58\) |
default | \(\frac {\sqrt {\frac {a x +b}{x}}\, \left (-6 a^{\frac {9}{2}} \sqrt {x \left (a x +b \right )}\, x^{5}+3 \ln \left (\frac {2 \sqrt {x \left (a x +b \right )}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a^{4} b \,x^{5}-6 \sqrt {a \,x^{2}+b x}\, a^{\frac {9}{2}} x^{5}-3 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a^{4} b \,x^{5}+24 \left (x \left (a x +b \right )\right )^{\frac {3}{2}} a^{\frac {7}{2}} x^{3}-18 \sqrt {x \left (a x +b \right )}\, a^{\frac {7}{2}} b \,x^{4}+9 \ln \left (\frac {2 \sqrt {x \left (a x +b \right )}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a^{3} b^{2} x^{4}-12 \left (a \,x^{2}+b x \right )^{\frac {3}{2}} a^{\frac {7}{2}} x^{3}-18 \sqrt {a \,x^{2}+b x}\, a^{\frac {7}{2}} b \,x^{4}-9 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a^{3} b^{2} x^{4}+28 a^{\frac {5}{2}} \left (x \left (a x +b \right )\right )^{\frac {3}{2}} b \,x^{2}-18 \sqrt {x \left (a x +b \right )}\, a^{\frac {5}{2}} b^{2} x^{3}+9 \ln \left (\frac {2 \sqrt {x \left (a x +b \right )}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a^{2} b^{3} x^{3}-36 a^{\frac {5}{2}} \left (a \,x^{2}+b x \right )^{\frac {3}{2}} b \,x^{2}-18 \sqrt {a \,x^{2}+b x}\, a^{\frac {5}{2}} b^{2} x^{3}-9 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a^{2} b^{3} x^{3}-6 \sqrt {x \left (a x +b \right )}\, a^{\frac {3}{2}} b^{3} x^{2}+3 \ln \left (\frac {2 \sqrt {x \left (a x +b \right )}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a \,b^{4} x^{2}-36 \left (a \,x^{2}+b x \right )^{\frac {3}{2}} a^{\frac {3}{2}} b^{2} x -6 a^{\frac {3}{2}} \sqrt {a \,x^{2}+b x}\, b^{3} x^{2}-3 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a \,b^{4} x^{2}-12 \left (a \,x^{2}+b x \right )^{\frac {3}{2}} \sqrt {a}\, b^{3}\right )}{6 x \sqrt {x \left (a x +b \right )}\, b^{4} \left (a x +b \right )^{3} \sqrt {a}}\) | \(607\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 47, normalized size = 0.85 \begin {gather*} -\frac {2 \, \sqrt {a + \frac {b}{x}}}{b^{3}} - \frac {4 \, a}{\sqrt {a + \frac {b}{x}} b^{3}} + \frac {2 \, a^{2}}{3 \, {\left (a + \frac {b}{x}\right )}^{\frac {3}{2}} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 55, normalized size = 1.00 \begin {gather*} -\frac {2 \, {\left (8 \, a^{2} x^{2} + 12 \, a b x + 3 \, b^{2}\right )} \sqrt {\frac {a x + b}{x}}}{3 \, {\left (a^{2} b^{3} x^{2} + 2 \, a b^{4} x + b^{5}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 136 vs.
\(2 (46) = 92\).
time = 0.73, size = 136, normalized size = 2.47 \begin {gather*} \begin {cases} - \frac {16 a^{2} x^{2}}{3 a b^{3} x^{2} \sqrt {a + \frac {b}{x}} + 3 b^{4} x \sqrt {a + \frac {b}{x}}} - \frac {24 a b x}{3 a b^{3} x^{2} \sqrt {a + \frac {b}{x}} + 3 b^{4} x \sqrt {a + \frac {b}{x}}} - \frac {6 b^{2}}{3 a b^{3} x^{2} \sqrt {a + \frac {b}{x}} + 3 b^{4} x \sqrt {a + \frac {b}{x}}} & \text {for}\: b \neq 0 \\- \frac {1}{3 a^{\frac {5}{2}} x^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.35, size = 40, normalized size = 0.73 \begin {gather*} -\frac {2\,\sqrt {a+\frac {b}{x}}\,\left (8\,a^2\,x^2+12\,a\,b\,x+3\,b^2\right )}{3\,b^3\,{\left (b+a\,x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________